package com.lnsf.dao;

import java.util.List;

import com.lnsf.entity.Employee;


public interface EmployeeDao {
	
//	@Select("select * from emp where ename like #{ename} and sal>=#{minSal} and sal<=#{maxSal}")
//	public List<Employee> getEmployeeByCondition(EmployeeCondition empCondition);
//	
//	@Select("select * from emp where ename like #{ename} and sal>=#{minSal} and sal<=#{maxSal}")
//	public List<Employee> getEmployeeByCondition2(Map<String,String> maps);
//
//	@SelectProvider(type=com.lnsf.dao.EmployeeSqlProvider.class,method="getEmployeeByConditionClassSql")
//	public List<Employee> getEmployeeByCondition3(EmployeeCondition empCondition);
//	
//	@SelectProvider(type=com.lnsf.dao.EmployeeSqlProvider.class,method="getEmployeeByConditionClassSql2")
//	public List<Employee> getEmployeeByCondition4(Map<String,String> maps);
   
	public int addEmployee(Employee emp);
	public int updateEmployee(Employee emp);
	public int deleteEmployee(int empno);
	public Employee getEmployeeById(int empno);
	public List<Employee> getAllEmployee();
	public int getMaxEmpNo();
	//一对一
	public Employee getEmployeeByIdFromAll(int empno);
}
